const _ = require('lodash/fp')

const _toLower = _.flowRight(_.replace(/\s+/g, '-'), _.toLower)

console.log(_toLower('hello   world   123'))

// const firstLetterToUpper=_.flowRight(_.join('.'),_.map(_.first),_.map(_.toUpper),_.split(' '))
const firstLetterToUpper=_.flowRight(_.join('.'),_.map(_.flowRight(_.first,_.toUpper)),_.split(' '))


console.log(firstLetterToUpper('hello world web'))
